-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChemMaster+ #2778
base: master
Are you sure you want to change the base?
ChemMaster+ #2778
Conversation
<!-- This is a semi-strict format, you can add/remove sections as needed but the order/format should be kept the same Remove these comments before submitting --> <!-- Explain this PR in as much detail as applicable Some example prompts to consider: How might this affect the game? The codebase? What might be some alternatives to this? How/Who does this benefit/hurt [the game/codebase]? --> Changes how the ChemMaster works: 1. Removes the amount buttons and instead uses a textbox that resets whenever a value is entered or focus ends. 2. Shrinks the ChemMaster again. 3. Adds sorting options, including for quantity, last added, and a sort option for the (default) alphabetical order. 4. Sorting options save via the ChemMaster itself, not per-user. Video showcase: https://discord.com/channels/1218698320155906090/1218698321053356060/1330129166384894046 --- <!-- You can add an author after the `:cl:` to change the name that appears in the changelog (ex: `:cl: Death`) Leaving it blank will default to your GitHub display name This includes all available types for the changelog --> :cl: - add: Added sorting options to the ChemMaster. - add: Added the ability to input custom amounts into the ChemMaster via a textbox that resets on change. - tweak: The width of the ChemMaster UI has been lowered. - remove: Removed quantity buttons from the ChemMaster. --------- Co-authored-by: VMSolidus <[email protected]>
I could theoretically upstream. |
Direction is reviewing, get back to you in about 24 hours! |
might be a PITA, but this exclusively touches upstream files, so i would suggest opening a parallel PR and seeing if that gets accepted |
Not able to until one of the ChemMaster PR snipe changes gets merged. |
I'm going over this, and I'm likely going to redo the entire ChemMaster systems as a whole. You can merge this as-is, though. |
No comments, no merge. |
Seen closed. Direction recommends trying this type of change upstream first anyhow. |
Again, as stated, I can't. Will certainly try when that other PR is merged on WizDen's side. |
…to port-chemmaster-plus
Hate having to use the same buffer for pills? Want sorting and container solutions for output? No need to wait _any_ longer! A brand new pill buffer, a sort feature _for_ the new pill buffer **and** you have your amount buttons back! Showcase: https://ptb.discord.com/channels/1218698320155906090/1218698321053356060/1332224976803074123 🆑 - add: A new ChemMaster experience has been granted to the people of Einstein Engines. Includes a pill buffer!
simplify this shitcode i borked it last time, sorry --------- Signed-off-by: sleepyyapril <[email protected]> Co-authored-by: VMSolidus <[email protected]>
…to port-chemmaster-plus
Re-opened with new video showcase |
How many comments is too many? |
Reviewing, 24-48 hours |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all these comments should be // DeltaV
not Delta-v
…l/Delta-v into port-chemmaster-plus
Resources/Locale/en-US/chemistry/components/chem-master-component.ftl
Outdated
Show resolved
Hide resolved
Resources/Prototypes/Entities/Structures/Machines/chem_master.yml
Outdated
Show resolved
Hide resolved
@@ -10,7 +10,7 @@ chem-master-bound-user-interface-title = ChemMaster 4000 | |||
|
|||
chem-master-window-input-tab = Input | |||
chem-master-window-output-tab = Output | |||
chem-master-window-container-label = Container | |||
chem-master-window-container-label = Container |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
untouch
chem-master-window-transferring-label = Transferring: [color={$color}]{$quantity}[/color] | ||
chem-master-window-transferring-default-label = Transferring: [color=#ffffff]50[/color] | ||
chem-master-window-reagent-move-button = Move | ||
chem-master-window-discard-button = Discard |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file needs trailing newline
public ChemMasterBoundUserInterfaceState( // DeltaV | ||
ContainerInfo? inputContainerInfo, | ||
IReadOnlyList<ReagentQuantity> bufferReagents, | ||
IReadOnlyList<ReagentQuantity> pillBufferReagents, | ||
FixedPoint2 bufferCurrentVolume, | ||
FixedPoint2 pillBufferCurrentVolume, | ||
uint selectedPillType, | ||
uint pillDosageLimit, | ||
bool updateLabel, | ||
int sortMethod, | ||
int transferringAmount) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this still reformats the constructor, keep it how it was and move all deltav fields to the end
Working this one out with the author through discord channels, review still in progress |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Direction Approved, but requesting a do not merge till April gives the go ahead that all the requested features have been ported
About the PR
Changes how the ChemMaster works:
Why / Balance
Sorting the ChemMaster by default is bad, let people have the right to choose how it sorts.
Also lets you set your own quantity to transfer/discard.
Technical details
Mostly UI changes.
Media
Video showcase:
https://ptb.discord.com/channels/968983104247185448/1206353544186171482/1333324287188402277
Requirements
Breaking changes
Changelog
🆑